package com.ss.android.article.base.feature.message;

import android.support.v4.view.ViewPager.OnPageChangeListener;

import com.ss.android.common.lib.MobClickCombiner;
import com.ss.android.common.ui.view.SwipeOverlayFrameLayout;

final class c implements OnPageChangeListener {
    private final MessageTabActvity a;

    c(MessageTabActvity arg1) {
        this.a = arg1;

    }

    public final void onPageScrollStateChanged(int state) {
    }

    public final void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {
    }

    public final void onPageSelected(int position) {
        String v0_1;
        int v4 = 2;
        SwipeOverlayFrameLayout v3 = MessageTabActvity.a(this.a);
        boolean v0 = position == 0 ? true : false;
        v3.setSwipeEnabled(v0);
        if(position == 1) {
            v0_1 = this.a.c[1].b > 0 ? "display_digg_with_badge" : "display_digg_without_badge";
            MobClickCombiner.onEvent(this.a, "message_list", v0_1);
        }
        else {
            if(position != v4) {
            }else {
                v0_1 = this.a.c[v4].b > 0 ? "display_notification_with_badge" : "display_notification_without_badge";
                MobClickCombiner.onEvent(this.a, "message_list", v0_1);
            }
        }

        this.a.c[position].setTipNumber(0);
    }
}

